package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
* @Author: 鸢一折纸
* @Email: 3498881048@qq.com
* @Date: 2025/09/04 15:53
* @Description: ${Description}
**/
    
    
/**
    * 年假表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "annual_leave")
public class AnnualLeave {
    @TableId(value = "annual_id", type = IdType.INPUT)
    private Integer annualId;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "annual_cycle")
    private String annualCycle;

    @TableField(value = "annual_date")
    private Double annualDate;

    @TableField(value = "use_date")
    private Double useDate;

    @TableField(value = "surplus_date")
    private Double surplusDate;

    @TableField(value = "submit_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date submitAt;

    @TableField(value = "updated_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;
}